package com.heima.admin.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.admin.dtos.ChannerDto;
import com.heima.model.admin.pojos.AdChannel;
import com.heima.model.common.dtos.ResponseResult;

public interface ChannelService extends IService<AdChannel> {

    //按照名称查询频道列表，按照顺序升序排序
    public ResponseResult getChannelListByName(ChannerDto channelDto);

//    保存频道
    public ResponseResult saveChannel(AdChannel channel);


//    根据id修改频道信息
    public ResponseResult updateByidAndName(AdChannel channel);


//    根据id删除频道信息
    public ResponseResult deleteByid(Integer id);
}
